package edu.ynu.se.xiecheng.achitectureclass.dao;
import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.entity.SoilNitrogenData;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;


import java.util.List;

public interface SoilNitrogenDataDao extends LogicDAO<SoilNitrogenData,Long> {
    List<SoilNitrogenData> findAll();
    SoilNitrogenData findTopByOrderByCreateTimeDesc();

    // 获取土壤温度历史数据（分页）
    Page<SoilNitrogenData> findAllByOrderByCreateTimeDesc(Pageable pageable);
}
